package com.xue;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author xuejingbao
 * @create 2023-01-13 16:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Node {

    private Integer nodeId;

    private String nodeName;

    private Integer fatherId;

    private List<Node> children;

    public Node(Integer nodeId, String nodeName, Integer fatherId) {
        this.nodeId = nodeId;
        this.nodeName = nodeName;
        this.fatherId = fatherId;
    }

}
